#!/bin/bash

# Calculate 1 + 2 + ... + 100

i=1
sum=0
number=100

while [ "$i" -le "$number" ]; do
  sum=$[$sum + $i]
  i=$[$i + 1]
done

echo $sum
